import "@site/src/languages/highlight";

# Texture2D

**Description:**

&emsp;&emsp;A record represents a 2D texture.

**Class Object:** [Texture2D Class](/docs/api/Class%20Object/Texture2D).

**Inherits from:** [Object](/docs/api/Class/Object).

## width

**Type:** Readonly Field.

**Description:**

&emsp;&emsp;The width of the texture, in pixels.

**Signature:**
```tl
const width: integer
```

## height

**Type:** Readonly Field.

**Description:**

&emsp;&emsp;The height of the texture, in pixels.

**Signature:**
```tl
const height: integer
```